package next.TestFunctionality;

import next.CustomLayout.TitleBar;
import next.Functionality.DialogFunctonality.TypeDialog;
import next.Functionality.MenuFunctionality;
import next.TemplateActivity.R;
import android.os.Bundle;
import android.util.Log;
import android.widget.ToggleButton;

public class TestMenu extends MenuFunctionality{

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.generic_test_layout);
		//--Creating Dialog.
		String [] Botones={"OK","CANCEL"};
		String [] Items={"opcion1","opcion2","opcion3"};
		CreateDialog(TypeDialog.ALERT, R.drawable.icon, "TestingDialog", Botones, Items, null);
		//CreateDialog(TypeDialog.PROGRESS, R.drawable.icon, "TestingDialog", Botones, Items, 100);
		ToggleButton btn=(ToggleButton) findViewById(R.id.test_V_TBN);
		btn.setOnCreateContextMenuListener(this);
	
	}
	
	/** Called when the activity start. */
	@Override
	public void onStart() {
		String [] nameItem={"it1","it2","it3","it4","it5","it6","it7"};
		PrepareMenu(7, nameItem, null, null);
		super.onStart();
	}

}
